import Vue from "vue";
import Vuex from "vuex";
import createPersistedState from "vuex-persistedstate";

import user from "./user";
import books from "./books";

Vue.use(Vuex);

const store = new Vuex.Store({
  plugins: [createPersistedState()],
  state: {},
  actions: {},
  mutations: {},
  modules: {
    user,
    books,
  },
});

export default store;
